<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>sso-sys2</title>
</head>
<body>
<h1>这里是 sso-sys2 首页</h1>
<p th:unless="${session.loginUser==null}">
    <span style="color:deepskyblue;" th:text="${session.loginUser.name}"></span> 已登录
</p>
<a th:if="${session.loginUser==null}" href="http://login.sso.com:8088/page/login?target=http://sys1.sso.com:8082/index">登录</a>
<a th:unless="${session.loginUser==null}" href="/loginOut">退出</a>
</body>
</html>